package com.cn.study.fourth.stage.zuoye1;

public class Student {
    private String number;  //学号
    private String name;  //名字
    private String sex;  //性别
    private int grade;  //班级

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    private int age;


    public Student(String number, String name, String sex, int age, int grade) {
        this.number = number;
        this.name = name;
        this.sex = sex;
        this.age = age;
        this.grade = grade;
    }


    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getGrade() {
        return grade;
    }

    public void setGrade(int grade) {
        this.grade = grade;
    }


    //重写toString
    @Override
    public String toString() {
        return "Student{" +
                "number='" + number + '\'' +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", age=" + age +
                ", grade=" + grade +
                '}';
    }


}
